#ifndef TRAINING_HPP_
#define TRAINING_HPP_
/*******************************************************************************
 ** Name: training.hpp                                                        **
 ** Description:                         **
 **                                                                           **
 ** Open Source Initiative (OSI) Approved License                             **
 **                                                                           **
 ** The contents of this file are subject to the terms of the                 **
 ** Common Development and Distribution License, Version 1.0 only             **
 ** (the "License").  You may not use this file except in compliance          **
 ** with the License.                                                         **
 **                                                                           **
 ** You can find a copy of the license in the LICENSE file within             **
 ** this distribution or at $WIKI/display/GOVT/License-software.              **
 ** Software distributed under the License is distributed on an "AS IS"       **
 ** basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.           **
 ** See the License for the specific language governing permissions           **
 ** and limitations under the License.                                        **
 **                                                                           **
 ** When distributing Covered Code, include this CDDL header in each          **
 ** file and include the License file at $GAME_DIR/LICENSE.                   **
 ** If applicable, add the following below this header, with the indicated    **
 ** fields enclosed by brackets "[]" replaced with your own identifying       **
 ** information: Portions Copyright [yyyy] [name of copyright owner]          **
 **                                                                           **
 ** Copyright (c) 2009-2011  Barry Gian James <gian@gamingods.net>            **
 ** All rights reserved.                                                      **
 ******************************************************************************/
// Portions copyright 2012 Open Design Strategies, LLC.
// All rights reserved.// Created on April 4, 2010, 10:03 AM
// Modified $Date$ by $Author$
#define training_hpp_ID   "$Id$"

extern "C" {
#include <time.h>
}
#include <string>
#include <list>
#include "common.hpp"
#include "stat.hpp"

enum class TrainingVenue { Seminar, Outsourced, Offsite, Campus };

#pragma db object table("training_template")
class TrainingTemplate
{
public:
	TrainingTemplate(const std::string & n) { _name = n; _venue = TrainingVenue::Seminar; _length = 0; }

private:
#pragma db id id_type("VARCHAR(64)")
	std::string		_name;
#pragma db unordered
	std::vector<entity_t> _prerequisites;
	TrainingVenue	_venue;
	uint64_t		_length;		// how long it lasts for in seconds
#pragma db unordered
	std::vector<entity_t>		_mods;

};




#endif /* TRAINING_HPP_ */
